import axios from '../utils/http'


// 课程分类 列表
export const courseClassifyList = (params) =>
    axios({
        url: '/v1/manager/classify/course',
        method: 'get',
        params
    })

// 课程分类 添加
export const courseClassifyListAdd = (data) =>
    axios({
        url: '/v1/manager/classify/course',
        method: 'post',
        data
    })


// 课程分类 删除
export const courseClassifyListDelete = (params) =>
    axios({
        url: `/v1/manager/classify/course/${params}`,
        method: 'delete',
    })

//------------------------------------------
// 课程列表 列表
export const courseList = (params) =>
    axios({
        url: '/v1/manager/course',
        method: 'get',
        params
    })

// 课程列表 详情
export const courseListId = (params) =>
    axios({
        url: `/v1/manager/course/${params}`,
        method: 'get',
    })

// 课程列表 添加
export const courseListAdd = (data) =>
    axios({
        url: '/v1/manager/course',
        method: 'post',
        data
    })

// 课程列表 删除
export const courseListDelete = (params) =>
    axios({
        url: `/v1/manager/course/${params}`,
        method: 'delete',
    })
